/**
 * @namespace 导航菜单扩展
 * @name JF.nav
 * @author Levin
 * @version 1.0
 * @requires jQuery,jquery.slimNav
 */
JF.M('nav',(function($){
	var p={},
		/** @scope JF.nav.prototype */
		pub={};

	/**
	 * @private
	 */
	pub.onLoad=function(){
		
		//底部导航菜单加动画效果
		/*
		$(":jqmData(role='link')").slimNav({
			onNav:function($d,$cur){
				$cur.nextAll().jqmRemoveData("direction");
				$cur.prevAll().jqmData("direction","reverse");
			}
		});
		*/
		//不加动画效果
		$(":jqmData(role='link')").slimNav({
			onPreNav:function($d){
				if($.mobile.isPageTransitioning||$.mobile.isAjaxing){
					return false;
				}
				return true;
			}
		});

	};
	return pub;
})(jQuery));